<%@ page language="java" import="java.util.*,com.ce.util.*,com.ce.framework.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<%@ include file="/common/common.jsp"%>
<%
String ps = RegeditUtil.getRegeditStringValue("SESSION_CREATE_PROJECT_NAME");
%>

<script type="text/javascript">
$(function(){
	var ps = '<%=ps%>'.split(",");
	for(var i=0;i<ps.length;i++){
		$.getJSON('/'+ps[i]+'/sys/regedit/SysRegedit_loadCacheSize.action',function(data){
			if(!data||data.length<=0)return;
			var htm = '<div style="width:300px;float:left;margin:5px 10px;"><table class="tbl" align="center" width="100%">'+
				'<caption>'+this.url.replace(/\/([^\/]+)\/.*/,'$1')+'</caption>'+
				'<thead class="datagrid-header">'+
				'<tr><td>缓存名称</td><td align=right>缓存大小</td></tr>'+
				'</thead>'+
				'<tbody class="datagrid-body">';
			var all=0;
			for(var j=0;j<data.length;j++){
				all += data[j][2];
				htm += '<tr><td>'+data[j][0]+'</td><td align=right>'+data[j][1]+'</td></tr>';
			}
			htm += '</tbody></table></div>';
			var t = $(htm)[0];
			$('#body').append(t);
		});
	}
});
</script>

<style>
.tbl{border:1px solid #ccc;}
</style>
<div id="body">
</div>
